<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <link rel="shortcut icon" href="images/favicon.ico"/>
        <title>JForum :: #{resourcesController.extractResource('ADMIN_PANEL_LOG_IN')}</title>
    </h:head>
    <h:body style="background-color: #000000"
            onload="logadmbox.show();">
            <h:form>
                      <p:growl id="messageGrowl" showDetail="true"/>
                      <p:dialog header="#{resourcesController.extractResource('ADMIN_PANEL_LOG_IN')}"
                                widgetVar="logadmbox"
                                width="400">
                          <h:panelGrid columns="2">
                            <h:outputLabel id="uname"   value="#{resourcesController.extractResource('LOGIN')}"/>
                            <p:inputText   id="inuname" value="#{authorizationBean.username}" size="15"/>
                            <h:outputLabel id="upass"   value="#{resourcesController.extractResource('PASSWORD')}"/>
                            
                            <p:password value="#{authorizationBean.password}"
                                     feedback="false"
                                     size="15"
                                     maxlength="18"
                                     id="inupass"
                                     required="true"

                                     requiredMessage="#{resourcesController.extractResource('PASSWORD_REQUIRED')}">
                                <p:ajax event="blur"  />
                            </p:password>  
                            
                            
                            <p:commandButton value="#{resourcesController.extractResource('LOG_IN')}"
                                             oncomplete="logadmbox.hide();"
                                             action="#{authorizationBean.authorise()}"/>
                          </h:panelGrid>
                      </p:dialog>
            </h:form>
    </h:body>
</html>

